<?php

// $Id$

require_once($WSC->get_site_inc_dir().'modules/tangra_cms/classes/category/tcms_category_dbc.class.php');
require_once($WSC->get_site_inc_dir().'modules/tangra_cms/classes/vpage/tcms_vpage_category_dbc.class.php');


class TCMS_Category_Deleter extends Tangra_Class {
	public static function delete_cascade(DB_Connection $dbc, $id) {
		tangra_if_not_int_throw_e($id);
		TCMS_Category_DBC::delete($dbc, $id);
		TCMS_VPage_Category_DBC::delete_for_category($dbc, $id);
	}
}

